<template>
  <view class="out">
    <view class="box" v-for="(item,idx) in 10" :key="item">box模块-{{idx+1}}</view>

    <view v-for="it in nba" :key="it.id">球星：{{it.name}} - 球衣：{{it.num}}</view>
  </view>
</template>

<script setup>
  import { ref } from 'vue'
  const nba = ref([
    { id: 1, name: '乔丹', num: 23 },
    { id: 2, name: '詹姆斯', num: 6 },
    { id: 3, name: '科比', num: 24 }
  ])
</script>

<style lang="scss">

</style>